package com.cxl.live.system.dto;

import com.cxl.live.base.BaseDTO;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: Room
 * @Author: ChenXueLi
 * @Date: 2019-01-30 11:10
 * 你是一段成熟的代码，要学会自己改bug
 */
@EqualsAndHashCode(callSuper = true)
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "c_room")
public class Room extends BaseDTO {

    @ApiModelProperty(value = "房间id", name = "roomId")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer roomId;

    @ApiModelProperty(value = "房间地址", name = "roomUrl")
    private String roomUrl;

    @ApiModelProperty(value = "房间名称", name = "roomName")
    private String roomName;

    @ApiModelProperty(value = "所属用户id", name = "belongUserId")
    private String belongUserId;

}
